/**
 * Created by huangchao on 20/11/2017.
 */
import {singleApi} from '../helper/reduxFetch'
export const RESOURCE_DEFULATE_DATA_LIST = 'RESOURCE_DEFULATE_DATA_LIST' // 获取初始化list
export const RESOURCE_HEI_QUERY_LIST = 'RESOURCE_HEI_QUERY_LIST' // 高级查询

export const getInitList = singleApi({ // 基本搜索
  url: '/dfws-customer/resources/queryResourcesByPage',
  action: (args, json) => {
    return {
      args,
      type: RESOURCE_DEFULATE_DATA_LIST,
      data: json,
    }
  },
})



export const geiHeiList = singleApi({ // 高级搜索
  url: '/dfws-customer/resources/queryAdvancedSearchByPage',
  action: (args, json) => {
    return {
      args,
      type: RESOURCE_HEI_QUERY_LIST,
      data: json,
    }
  },
})

export const uploadProps = { // 导入线索
  name: 'file',
  showUploadList: false,
  accept: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
  action: '/dfws-customer/crm/ind_importFile_check',
  headers: {
    authorization: 'authorization-text',
  },
}
